//
//  HistoryCell.m
//  IntegralDog
//
//  Created by User on 16/3/21.
//  Copyright © 2016年 hanen. All rights reserved.
//

#import "HistoryCell.h"
#import "AppDelegate.h"
#import "Macro.h"

@implementation HistoryCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.clipsToBounds = YES;
        self.backgroundColor = bGGrayColor;
       _picView = [[UIImageView alloc]initWithFrame:CGRectMake1(15, 5, 20, 20)];
        _picView.image = [UIImage imageNamed:@"Btn_Normal_Shijianjilu"];
        [self.contentView addSubview:_picView];
        
        _label = [[UILabel alloc]initWithFrame:CGRectMake1(30+10, 5, 320, 20)];
        _label.textColor = fontLightGrayColor2;
        _label.font = [UIFont systemFontOfSize:14.0f];
        
        _label.textColor = [UIColor grayColor];
        [self.contentView addSubview:_label];

        
    };
    return self;
}

CG_INLINE CGRect
CGRectMake1(CGFloat x,CGFloat y,CGFloat width,CGFloat height)
{
    AppDelegate *app = [UIApplication sharedApplication].delegate;
    return CGRectMake(x * app.autoSizeScaleX, y * app.autoSizeScaleY, width * app.autoSizeScaleX, height * app.autoSizeScaleX);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
